import { EWorkType, PlantHomeWork, StdHomeWork } from '.';
import { AnswersID, AnswersTestID, ClassID, PlanID, WorkID } from '..';

export type HomeWorkList = {
  homework: PlantHomeWork;
  list: Array<StdHomeWork>;
};
export type QueryHomeWork = {
  /** 考试*/
  work_type: EWorkType;
  /** 考试*/
  plan_id: PlanID;
  /** 考试*/
  class_id: ClassID;
  /** 考试*/
  work_id: WorkID;
};

export enum ESubmitType {
  /**错误 */
  wrong = 'wrong',
  /**首次 */
  frist = 'frist'
}

export enum EMarkType {
  /**错误 */
  base = 'base',
  /**首次 */
  custom = 'custom',
  /**未知 */
  none = 'none'
}

/**
 * 当前小题 小问 小问序号
 */
export type CurrentSubject = { name: string; id: AnswersID; test_id: AnswersTestID; idx: number };
